var fileUpLoadMulti = function(files, then) {
    var form; // FormData对象
    var count = 0;
    //var hasImg = false;  // 判断有没有要传的图片，没有则主动调用图片
    if (files.length > 0) {
        hasImg = true;
        var xmlhttprequest;
        form = new FormData();
        form.append("act", "multi");
        files.forEach(function(item) {
            var file = item.files[0];
            form.append("file[]", file);
        });
        if (window.XMLHttpRequest) {
            xmlhttprequest = new XMLHttpRequest();
            if (xmlhttprequest.overrideMimeType) {
                xmlhttprequest.overrideMimeType("text/xml");
            }
        }
        xmlhttprequest.open("POST", "http://cloud.eeesys.com/pu/upload.php", true);
        xmlhttprequest.onreadystatechange = callback.bind(this);
        xmlhttprequest.send(form);
        function callback() {
            if (xmlhttprequest.readyState == 4 && xmlhttprequest.status == 200) {
                var res = JSON.parse(xmlhttprequest.responseText);
                then && then(res);
            }
        }
    } else {
        then();
    }
}